package com.raycloud.robot.domain.dto;

import java.io.Serializable;

public class ProductAttrChest implements Serializable{
    private static final long serialVersionUID=-4571828191996209844L;
    private Long id;
    private Integer appId;
    private String businessId;
    private Integer type;
    private String up;
    private String down;
    private String value;
    private Integer number;
    public Long getId(){
        return this.id;
    }
    public Integer getAppId(){
        return this.appId;
    }
    public String getBusinessId(){
        return this.businessId;
    }
    public Integer getType(){
        return this.type;
    }
    public String getUp(){
        return this.up;
    }
    public String getDown(){
        return this.down;
    }
    public String getValue(){
        return this.value;
    }
    public Integer getNumber(){
        return this.number;
    }
    public void setId(final Long id){
        this.id=id;
    }
    public void setAppId(final Integer appId){
        this.appId=appId;
    }
    public void setBusinessId(final String businessId){
        this.businessId=businessId;
    }
    public void setType(final Integer type){
        this.type=type;
    }
    public void setUp(final String up){
        this.up=up;
    }
    public void setDown(final String down){
        this.down=down;
    }
    public void setValue(final String value){
        this.value=value;
    }
    public void setNumber(final Integer number){
        this.number=number;
    }
    @Override
    public boolean equals(final Object o){
        if(o==this){
            return true;
        }
        if(!(o instanceof ProductAttrChest)){
            return false;
        }
        final ProductAttrChest other=(ProductAttrChest)o;
        if(!other.canEqual(this)){
            return false;
        }
        final Object this$id=this.getId();
        final Object other$id=other.getId();
        Label_0065:{
            if(this$id==null){
                if(other$id==null){
                    break Label_0065;
                }
            }
            else if(this$id.equals(other$id)){
                break Label_0065;
            }
            return false;
        }
        final Object this$appId=this.getAppId();
        final Object other$appId=other.getAppId();
        Label_0102:{
            if(this$appId==null){
                if(other$appId==null){
                    break Label_0102;
                }
            }
            else if(this$appId.equals(other$appId)){
                break Label_0102;
            }
            return false;
        }
        final Object this$businessId=this.getBusinessId();
        final Object other$businessId=other.getBusinessId();
        Label_0139:{
            if(this$businessId==null){
                if(other$businessId==null){
                    break Label_0139;
                }
            }
            else if(this$businessId.equals(other$businessId)){
                break Label_0139;
            }
            return false;
        }
        final Object this$type=this.getType();
        final Object other$type=other.getType();
        Label_0176:{
            if(this$type==null){
                if(other$type==null){
                    break Label_0176;
                }
            }
            else if(this$type.equals(other$type)){
                break Label_0176;
            }
            return false;
        }
        final Object this$up=this.getUp();
        final Object other$up=other.getUp();
        Label_0213:{
            if(this$up==null){
                if(other$up==null){
                    break Label_0213;
                }
            }
            else if(this$up.equals(other$up)){
                break Label_0213;
            }
            return false;
        }
        final Object this$down=this.getDown();
        final Object other$down=other.getDown();
        Label_0250:{
            if(this$down==null){
                if(other$down==null){
                    break Label_0250;
                }
            }
            else if(this$down.equals(other$down)){
                break Label_0250;
            }
            return false;
        }
        final Object this$value=this.getValue();
        final Object other$value=other.getValue();
        Label_0287:{
            if(this$value==null){
                if(other$value==null){
                    break Label_0287;
                }
            }
            else if(this$value.equals(other$value)){
                break Label_0287;
            }
            return false;
        }
        final Object this$number=this.getNumber();
        final Object other$number=other.getNumber();
        if(this$number==null){
            if(other$number==null){
                return true;
            }
        }
        else if(this$number.equals(other$number)){
            return true;
        }
        return false;
    }
    protected boolean canEqual(final Object other){
        return other instanceof ProductAttrChest;
    }
    @Override
    public int hashCode(){
        final int PRIME=59;
        int result=1;
        final Object $id=this.getId();
        result=result*59+(($id==null)?43:$id.hashCode());
        final Object $appId=this.getAppId();
        result=result*59+(($appId==null)?43:$appId.hashCode());
        final Object $businessId=this.getBusinessId();
        result=result*59+(($businessId==null)?43:$businessId.hashCode());
        final Object $type=this.getType();
        result=result*59+(($type==null)?43:$type.hashCode());
        final Object $up=this.getUp();
        result=result*59+(($up==null)?43:$up.hashCode());
        final Object $down=this.getDown();
        result=result*59+(($down==null)?43:$down.hashCode());
        final Object $value=this.getValue();
        result=result*59+(($value==null)?43:$value.hashCode());
        final Object $number=this.getNumber();
        result=result*59+(($number==null)?43:$number.hashCode());
        return result;
    }
    @Override
    public String toString(){
        return "ProductAttrChest(id="+this.getId()+", appId="+this.getAppId()+", businessId="+this.getBusinessId()+", type="+this.getType()+", up="+this.getUp()+", down="+this.getDown()+", value="+this.getValue()+", number="+this.getNumber()+")";
    }
}
